import request from '@/utils/axios';
import constant from "@/utils/constant";

//查询再保作业
export function getReinsureList(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/list',
    method: 'post',
    data: params
  })
}

//访问数据库inseagn
export function checkInseagn(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/checkInseagn',
    method: 'post',
    data: params
  })
}

//访问数据库EUABSTM失败
export function findApplnumlListByChdrnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findApplnumlListByChdrnum',
    method: 'post',
    data: params
  })
}

//访问数据库EUAAPKY失败
export function findMaxAgntcoyByApplnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findMaxAgntcoyByApplnum',
    method: 'post',
    data: params
  })
}

//保单状态
export function findProcflgListByApplnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findProcflgListByApplnum',
    method: 'post',
    data: params
  })
}

//客户代码
export function findClntnumListByApplnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findClntnumListByApplnum',
    method: 'post',
    data: params
  })
}

//姓名和性别
export function findSurnameCltsexListByClntnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findSurnameCltsexListByClntnum',
    method: 'post',
    data: params
  })
}

//职级 年龄
export function findMortclsAnbatccdListByApplnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findMortclsAnbatccdListByApplnum',
    method: 'post',
    data: params
  })
}

//访问保单主档失败
export function findStatcodeListByChdrnumChdrcoy(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findStatcodeListByChdrnumChdrcoy',
    method: 'post',
    data: params
  })
}
//访问被保人年龄失败
export function findSAnbAtCcdListByChdrnumChdrcoy(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findSAnbAtCcdListByChdrnumChdrcoy',
    method: 'post',
    data: params
  })
}

//添加
export function addAccession(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/addAccession',
    method: 'post',
    data: params
  })
}

//险种下拉列表
export function findCrtableListByChdrnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findCrtableListByChdrnum',
    method: 'post',
    data: params
  })
}

//新增根据保单号码查询对应的序列号码
export function findSqnoAndSrednoByChdrnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findSqnoAndSrednoByChdrnum',
    method: 'post',
    data: params
  })
}

export function findRscompcodeList(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/findRscompcodeList',
    method: 'post',
    data: params
  })
}

export function saveData(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/saveData',
    method: 'post',
    data: params
  })
}

export function checkCrtable(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/checkCrtable',
    method: 'post',
    data: params
  })
}

export function countInseagnByChdrnum(params) {
  return request({
    url: constant.insureApi + '/unipnd/reinsure/countInseagnByChdrnum',
    method: 'post',
    data: params
  })
}
